package BanyuanClub.Study.Day0303;

/**
 * 匿名内部类
 */
public class TextInClass {
    //new一个该接口的匿名内部类
    public static void main(String[] args) {
        new MyInterface(){
            @Override
            public void mythod() {
                System.out.println("子类实现方法");
            }
        }.mythod();

    }
}
